import {
  ajax
} from "@/config/apiServer/axios-config.js";
import {
  URLS
} from "@/config/apiServer/urls.js";

// 获取用户列表
export function getUserList() {
  return ajax({
    type: 'get',
    url: URLS.USER_LIST
  })
}

// 获取冷热钱包币种监控信息
export function WalletMonitorInfo(form) {
  return ajax({
    type: 'get',
    url: URLS.WALLET_BALANCE,
    params: form
  })
}

// 监控余额查询列表
export function MonitorList(form) {
  return ajax({
    type: 'get',
    url: URLS.BALANCE_LIST,
    params: form
  })
}

// 查询交易记录
export function GetTransactionRecord(form) {
  return ajax({
    type: 'post',
    url: URLS.ASSETS_COMMON,
    params: {
      uri: "/backend/coin/records",
      method: "get",
      params: form
    },
  })
}

//交易类型
export function GetTransactionType() {
  return ajax({
    type: 'post',
    url: URLS.ASSETS_COMMON,
    params: {
      uri: "/backend/coin/category-list",
      method: "get",
      params: {}
    }
  })
}

//交易状态
export function GetTransactionStatus() {
  return ajax({
    type: 'post',
    url: URLS.ASSETS_COMMON,
    params: {
      uri: "/backend/coin/status-list",
      method: "get",
      params: {}
    }
  })
}

//提币设置列表
export function GetWithdrawLimit() {
  return ajax({
    type: 'post',
    url: URLS.ASSETS_COMMON,
    params: {
      uri: "/backend/config/withdraw-limit",
      method: "get",
      params: {}
    }
  })
}

//编辑提币设置列表
export function EditWithdrawLimit(param) {
  return ajax({
    type: 'post',
    url: URLS.ASSETS_COMMON,
    params: {
      uri: "/backend/config/edit-withdraw-limit",
      method: "post",
      params: param
    }
  })
}

//提币审核列表
export function GetWithdrawAudit(param) {
  return ajax({
    type: 'post',
    url: URLS.ASSETS_COMMON,
    params: {
      uri: "/backend/coin/withdraw-review-list",
      method: "get",
      params: param
    }
  })
}

//提币审核
export function UpdateWithdrawAudit(param) {
  return ajax({
    type: 'post',
    url: URLS.ASSETS_COMMON,
    params: {
      uri: "/backend/coin/withdraw-review-op",
      method: "get",
      params: param
    }
  })
}

// 发起查询申请
export function startSearch() {
  return ajax({
    type: 'post',
    url: URLS.ASSETS_COMMON,
    params: {
      uri: "/backend/coin/active-assets-query",
      method: "get",
    }
  })
}

// 托管查询列表
export function searchList() {
  return ajax({
    type: 'post',
    url: URLS.ASSETS_COMMON,
    // header: {
    //   'Fzm-Wallet-Source': 'bcoin_backend'
    // },
    params: {
      uri: "/backend/coin/get-total-assets",
      method: "get"
    }
  })
}